import bb.cascades 1.0

Container {
    background: Color.create("#1f2d56")
    preferredWidth: 384
    preferredHeight: 420
    layout: DockLayout {
    }
    Label {
        id: "lbl"
        objectName: "lbl"
        text: "text"
        textStyle.fontSizeValue: 25
        horizontalAlignment: HorizontalAlignment.Center
        verticalAlignment: VerticalAlignment.Center
    } // end label
    onCreationCompleted: {
        background = Color.create('#' + Math.floor(Math.random() * 16777215).toString(16))
    }
    onTouch: {
        lbl.setTranslationX(100);
    }
    attachedObjects: [
        ImplicitAnimationController {
            propertyName: "translationX"
            enabled: false
        }
    ]
}
